



//
//  FLMDeatilsCell.m
//  FLMSuperS
//
//  Created by xiaoyang on 16/9/25.
//  Copyright © 2016年 FaLaoMiaoNetworkTechnologyCo. All rights reserved.
//

#import "FLMDeatilsCell.h"

#import "FLMDetailView.h"

#import "FLMDeatilResponseModel.h"

#import "FLMBuyView.h"
@interface FLMDeatilsCell ()
{
    CGRect itemFrame;
}
@property (nonatomic, strong) FLMDetailView * homeShopV;

@property (nonatomic, strong) FLMBuyView *buyV;

@end

@implementation FLMDeatilsCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        itemFrame = frame;
        [self layoutUI];
    }
    
    return self;
}


- (void)layoutUI
{
    _homeShopV = [[FLMDetailView alloc]initWithFrame:CGRectMake(0, 0, itemFrame.size.width, itemFrame.size.height)];
    [self.contentView addSubview:_homeShopV];
    
}


- (void)configueDeatilCellWithModel:(FLMRecommendModel *)deatilGoodModels
{
    //商品主图
    [_homeShopV.imgV sd_setImageWithURL:[NSURL URLWithString:deatilGoodModels.pict_url] placeholderImage:[UIImage imageNamed:@"1"]];
    //标题
    _homeShopV.titleL.text = deatilGoodModels.title;
    // 商品价格
    _homeShopV.priceL.text = [NSString stringWithFormat:@"￥%@",deatilGoodModels.zk_final_price];
    // 商品销量
    _homeShopV.numL.text = [NSString stringWithFormat:@" %@",deatilGoodModels.volume];

}
@end
